/**
 * Copyright 2010 Adam Ruggles.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package saig.engine.models;

import java.awt.Image;

/**
 * Sprite Object, represents an image frame for a Model.
 * @author Adam
 * @version $Id$
 * 
 * Created on Jun 3, 2010 at 11:38:13 AM 
 */
public class Sprite {
	/**
	 * The height of the image.
	 */
	private int height;
	/**
	 * The image representing the sprite.
	 */
	private Image image;
	/**
	 * The width of the image.
	 */
	private int width;
	/**
	 * Constructs a sprite with an image.
	 * @param image
	 */
	public Sprite(Image image) {
		this.image = image;
		this.width = this.image.getWidth(null);
		this.height = this.image.getHeight(null);
	}
	/**
	 * Returns height.
	 * @return the height.
	 */
	public int getHeight() {
		return height;
	}
	/**
	 * Returns image.
	 * @return the image.
	 */
	public Image getImage() {
		return image;
	}
	/**
	 * Returns width.
	 * @return the width.
	 */
	public int getWidth() {
		return width;
	}
	/**
	 * Sets height.
	 * @param height the height to set.
	 */
	public void setHeight(int height) {
		this.height = height;
	}
	/**
	 * Sets image.
	 * @param image the image to set.
	 */
	public void setImage(Image image) {
		this.image = image;
	}
	/**
	 * Sets width.
	 * @param width the width to set.
	 */
	public void setWidth(int width) {
		this.width = width;
	}
}
